//
//  CancelView.swift
//  WalkNovel
//
//  Created by Kevin on 2023/8/1.
//

import UIKit

class CancelView: UIView {
    
    lazy var iconImage: UIImageView = {
        return UIImageView()
    }()
    
    lazy var title: UILabel = {
        let label = UILabel()
        label.font = .wn_font(name: .regular, size: 14)
        label.textColor = .init(named: "black_333333")
        return label
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(iconImage)
        addSubview(title)
        iconImage.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.left.equalTo(0)
            make.width.height.equalTo(20)
        }
        title.snp.makeConstraints { make in
            make.centerY.equalToSuperview()
            make.left.equalTo(iconImage.snp.right).offset(12)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
